package com.sk.bilibili.view.fragment.search;

import androidx.viewbinding.ViewBinding;

import com.sk.bilibili.adapter.pager.search.SearchFragmentAdapter;
import com.sk.bilibili.adapter.vlayout.BaseCollectionAdapter;
import com.sk.bilibili.adapter.vlayout.main.LiveAdapter;
import com.sk.bilibili.bean.Live;
import com.sk.bilibili.callBack.LiveClickCallBack;
import com.sk.bilibili.model.fragment.search.LiveModel;

public class LiveFragment extends BaseSearchFragment<LiveModel, Live> implements LiveClickCallBack {

    public LiveFragment(SearchFragmentAdapter parent, int pos) {
        super(parent, pos);
    }

    @Override
    protected BaseCollectionAdapter<? extends ViewBinding, Live> getAdapter() {
        return new LiveAdapter(getContext(),this);
    }

    @Override
    public void onLiveClick(Live live) {
        toast("历史原因无法播放");
    }

}